package com.yuanlrc.hotel.RoomReserve.domain;

import java.util.Date;
import com.yuanlrc.common.annotation.Excel;
import com.yuanlrc.common.core.domain.BaseEntity;
import com.yuanlrc.hotel.account.domain.Account;
import com.yuanlrc.hotel.room.domain.Room;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 预约管理对象 ylrc_room_reserve
 * 
 * @author yuanlrc
 * @date 2020-11-19
 */
public class RoomReserve extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public static long RATE = 0l;
    public static long NO_RATE = 1l;
    /** 编号 */
    private Long id;

    /** 房间号 */
    @Excel(name = "房间号")
    private Long roomId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long accountId;

    /** 预定时间 */
    @Excel(name = "预定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDateTime;

    /** 退房时间 */
    @Excel(name = "退房时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDateTime;

    /** 入住人数 */
    @Excel(name = "入住人数")
    private Long number;

    /** 是否评分 */
    @Excel(name = "是否评分")
    private Long israte;

    Room room;

    Account account;


    int count;

    int status;

    public static Integer REMOVE = 0; //可删除

    public static Integer NOT_REMOVE = 1; //不可用删除

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    //预订总价格
    Double prices;

    public Double getPrices() {
        return prices;
    }

    public void setPrices(Double prices) {
        this.prices = prices;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setStartDateTime(Date startDateTime) 
    {
        this.startDateTime = startDateTime;
    }

    public Date getStartDateTime() 
    {
        return startDateTime;
    }
    public void setEndDateTime(Date endDateTime) 
    {
        this.endDateTime = endDateTime;
    }

    public Date getEndDateTime() 
    {
        return endDateTime;
    }
    public void setNumber(Long number) 
    {
        this.number = number;
    }

    public Long getNumber() 
    {
        return number;
    }
    public void setIsrate(Long israte) 
    {
        this.israte = israte;
    }

    public Long getIsrate() 
    {
        return israte;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roomId", getRoomId())
            .append("accountId", getAccountId())
            .append("startDateTime", getStartDateTime())
            .append("endDateTime", getEndDateTime())
            .append("number", getNumber())
            .append("israte", getIsrate())
            .toString();
    }
}
